]> dgit.raspbian.org Git - gnome-shell.git/commit
screenshot: Return error if stream creation failed
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 25 Jan 2021 11:32:26 +0000 (12:32 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 28 Jan 2021 21:47:50 +0000 (21:47 +0000)
commit0efa82acf02ffbb017b5c58e9d954cfc1aea3f00
tree8f2aaa0dd249a92360d7a8e399925e353b8da434
parent1aee0516d67060c3fa6d68b72ebab0f1c84233ef
screenshot: Return error if stream creation failed

When we fail for some reason to open a stream to write the screenshot
to, we currently return `false` to the sender. That's not wrong, but
doesn't provide any hints on what caused the failure, so return the
underlying error instead.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3618

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1589>
js/ui/screenshot.js